/*
 * Copyright (c) 2025 EasyAdmin
 * All rights reserved.
 *
 * This file is part of the [EasAdmin] project.
 * Unauthorized copying of this file, via any medium, is strictly prohibited.
 * Proprietary and confidential.
 *
 * Author: EasyAdmin ( 1073602@qq.com )
 * Website: https://www.xhxiao.com
 */
package com.easy.module.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.easy.module.system.entity.SysNotice;
import com.easy.module.system.mapper.SysNoticeMapper;
import com.easy.module.system.query.SysNoticeQuery;
import com.easy.module.system.service.ISysNoticeService;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 通知公告表 Service业务
 *
 * @author EasyAdmin ( 1073602@qq.com )
 * @date 2025-08-21
 */
@RequiredArgsConstructor
@Service
public class SysNoticeServiceImpl extends ServiceImpl<SysNoticeMapper , SysNotice> implements ISysNoticeService
{

    @Override
    public LambdaQueryWrapper<SysNotice> lambdaQuery(SysNoticeQuery sysNoticeQuery) {
        return lambdaQueryOptional(sysNoticeQuery).orElse(lambdaQueryWrapper()).orderByDesc(SysNotice::getCreatedAt);
    }
}